/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package practica1ayd2;

/**
 *
 * @author Marco
 */
public class Practica1ayd2 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Practica1ayd2 main = new Practica1ayd2();
        main.Operaciones();
    }
    
    private void Operaciones(){
        Suma s = new Suma ();
        Resta r = new Resta();
        Multiplica m = new Multiplica();
        //5*2+5-10  = 5
        int result =r.operacion(s.operacion(5,m.operacion(5,2)),10);
        System.out.println("El resultado es "+ result);
    }
}
